package com.sikaryofficial.backend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sikaryofficial.backend.domain.dto.req.music.MusicLibraryListReq;
import com.sikaryofficial.backend.domain.dto.resp.music.MusicLibraryDTO;
import com.sikaryofficial.backend.domain.entity.Music;
import org.apache.ibatis.annotations.Param;

/**
 * 音乐Mapper接口
 *
 * @author qinjinyuan
 * @date 2024-08-07
 */
public interface MusicMapper extends BaseMapper<Music> {

    /**
     * 音乐分页列表
     *
     * @param customerPage
     * @param req
     * @return
     */
    IPage<MusicLibraryDTO> musicPageList(Page<MusicLibraryDTO> customerPage, @Param("req") MusicLibraryListReq req);

    IPage<MusicLibraryDTO> musicBackendPageList(Page<MusicLibraryDTO> customerPage, @Param("req") MusicLibraryListReq req);
}
